﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddStuSummry.aspx.cs" Inherits="Web.admin.InnerManage.AddStuSummry" validateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../tool/editor/kindeditor.js" type="text/javascript"></script>
    <script src="../tool/editor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="../js/checkStudent.js" type="text/javascript"></script>
    <script src="../js/WebCalendar.js" type="text/javascript"></script>
    <script type="text/javascript">
        var editor;
        KindEditor.ready(function (K) {
            editor = K.create('#KindEditor', {
                width: '750px', height: '330px',
                items: [
                     'preview', 'print', 'template', 'fullscreen', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull'
                     , '|', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', 'strikethrough',
                      'lineheight', 'removeformat', '|', 'image', 'multiimage', 'insertfile', 'table', 'hr', 'link', 'unlink', '|'
                ],
                uploadJson: '../../editor/asp.net/upload_json.ashx',
                fileManagerJson: '../../editor/asp.net/file_manager_json.ashx',
                allowFileManager: true
            });
        });
        $(function () {
            $("#Cb_url").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
    <script type="text/javascript" language="javascript" >
        function CheckEmpty() {
             if ($(".txtInput1").val() == "") {
                alert("学生学号称为必填项，不允许为空");
                return false;
            }
            else if ($(".txtInput4").val() == "") {
                alert("时间为必填项，不允许为空");
                return false;
            }
           
            else
                return true;
        };
        function ClearToEmpty() {
            if ($(".txtInput1").val("") && $(".txtInput3").val("") && $(".txtInput4").val(""))
                return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" alt="" /></td>
                        <td ><img src="../images/main_hl2.gif" alt="" /></td>
                        <td class="topNav"><span>获奖感言管理</span></td>
                        <td><img src="../images/main_hr.gif" alt="" /></td>
                    </tr>
                </table>
        </div>
    </div>
    <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle" style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;校内竞赛管理&gt;获奖感言管理</div>
            <div class="submitTable">
                <table>
                <tr>
                        <th>学生学号：</th>
                        <td>
                            <input type="text" runat="server" id="stuCode_txt" class="txtInput1" />
                            <a href="javascript:;" onclick="CheckByCode('stuCode_txt')">*查询</a>
                            <asp:Label ID="studentInfo" runat="server" Text="" />
                            <input id="ParId" type="hidden" runat="server" />
                            <input id="ConId" type="hidden" runat="server" />
                        </td>
                    </tr>
                    <tr id="stu_table">
                       <th>学生信息：</th>
                       <td >
                            <table class="tab_message">
                                <tr>
                                    <th style="text-align:center; background:rgb(214, 157, 157);">学号</th>
                                    <th style="text-align:center; background:rgb(214, 157, 157);">姓名</th>
                                    <th style="text-align:center; background:rgb(214, 157, 157);">班级</th>
                                    <th style="text-align:center; background:rgb(214, 157, 157);">学院</th>
                                </tr>
                                <tr id="stu_infor">
                                </tr>
                            </table>
                       </td> 
                    </tr>
                    <tr>
                      <th>感言题目：</th>
                    <td>
                        
                        <asp:TextBox  ID="sumtitle"  CssClass="txtInput3" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                        <th>时间：</th>
                        <td><asp:TextBox ID="txtDate" onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" runat="server" CssClass="txtInput4" ></asp:TextBox><label>*</label></td>
                    </tr>
                <tr>
                    <th>所属竞赛任务:</th>
                    <td>
                        <asp:TextBox ID="ContestName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <th>内容：</th>
                    <td><asp:TextBox  ID="KindEditor" TextMode="MultiLine" runat="server"></asp:TextBox></td>
                </tr>
                <tr id="FileTR" runat="server">
                        <th>选择文件：</th>
                        <td><asp:FileUpload ID="FileUpload1" runat="server" /></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <asp:Image ID="Image1" runat="server" /></td>
                    </tr>
                <tr>
                    <td>
                        <asp:Button ID="btn_Save" OnClientClick="return CheckEmpty();" Text="保存" 
                            CssClass="btn_submit" OnClick = "btn_Save_Click" runat="server" Height="30px" 
                            Width="87px" />
                    </td>
                    <td> 
                        <asp:Button ID="Button1" OnClientClick="return ClearToEmpty();"  Text="重置" CssClass ="btn_reset" runat="server" />
                    </td>
                </tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
